<template>
<uni-shadow-root class="partials-richText-richText"><import src="../../wxParse/wxParse.wxml"></import>
<view class="wxParseHtmlContainer" :style="'height: '+(!receiveData.jsonData.height||receiveData.jsonData.height==0?'':receiveData.jsonData.height)+'px'">
    <template is="init" :data="wxParseData:article.nodes"></template> 
</view></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'partials/richText/richText'
const app = getApp();
var WxParse = require('../../wxParse/wxParse.js');
Component({
  properties: {
    receiveData: {
      type: JSON,
      value: 'default value',
    }
  },
  data: {
    someData: {}
  },
  ready:function(){
    var that = this
    var oldData=that.data.receiveData;
    app.globalData.consoleFun("=====gridist组件-richText=====",[oldData])
    WxParse.wxParse('article', 'html', oldData.jsonData.content, that, 10);
  },
  methods: {
    tolinkUrl: function (event) {
      app.globalData.linkEvent(event.currentTarget.dataset.link);
    }
  },
})
export default global['__wxComponents']['partials/richText/richText']
</script>
<style platform="mp-weixin">
@import "../../wxParse/wxParse.css";
.wxParseHtmlContainer{
    padding: 0 20rpx;
    box-sizing: border-box;
}
</style>